projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c74f2f
)
Protect against initial handshake failures
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 15 Feb 2016 09:10:10 +0000
(20:10 +1100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 15 Feb 2016 09:10:10 +0000
(20:10 +1100)
* src/process.c (connect_network_socket): Mark the connection
as failed if the handshake didn't succeed yet. This should be
reworked later.
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index e8900715158d2475268938c767c216fc0c8c2a6d..f1c066f46716697208fab81bfe16df6fc228d100 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-3332,7
+3332,8
@@
void connect_network_socket (Lisp_Object proc, Lisp_Object ip_addresses)
boot = Fgnutls_boot (proc, XCAR (params), XCDR (params));
p->gnutls_boot_parameters = Qnil;
- if (NILP (boot) || STRINGP (boot))
+ if (NILP (boot) || STRINGP (boot) ||
+ p->gnutls_initstage != GNUTLS_STAGE_READY)
{
deactivate_process (proc);
if (NILP (boot))